package com.leejxx.health.utils;


import com.leejxx.health.common.RedisConst;
import org.springframework.data.redis.core.RedisTemplate;

public class RedisUtils {
    public static void flushRedis(RedisTemplate redisTemplate,Integer id){
        redisTemplate.delete(RedisConst.FIND_CHECKMEAL+id);
    }
    public static void flushSomeRedis(RedisTemplate redisTemplate,Integer id){
        redisTemplate.delete(RedisConst.FIND_CHECKMEAL+id);
        redisTemplate.delete(RedisConst.FIND_ALL_CHECKMEAL);
    }
}
